package com.example.rpcprovider;

import com.example.rpccommon.service.UserService;
import com.example.rpc_core.registry.LocalRegistry;
import com.example.rpc_core.server.HttpServer;
import com.example.rpc_core.server.VertxHttpServer;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class RpcProviderApplication {

    public static void main(String[] args) {
        // 注册服务
        LocalRegistry.register(UserService.class.getName(),UserServiceImpl.class);
         // 启动web服务
        HttpServer vertxHttpServer = new VertxHttpServer();
        vertxHttpServer.doStart(8080);
    }

}
